<template>
  <div class="help-assign-form">
    <el-form ref="form" :model="formParams" :inline="true">
      <el-form-item prop="companyName">
        <el-input
          v-model="formParams.companyName"
          placeholder="企业名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>

      <el-form-item prop="companyType">
        <el-select
          v-model="formParams.companyType"
          placeholder="企业分类"
          clearable
        >
          <el-option
            v-for="dict in pulldown.companyType"
            :key="dict.value"
            :label="dict.desc"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>

      <el-form-item prop="helpType">
        <el-select
          v-model="formParams.helpType"
          placeholder="求助类型"
          clearable
        >
          <el-option
            v-for="dict in pulldown.helpType"
            :key="dict.value"
            :label="dict.desc"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>

      <el-form-item prop="helpTime">
        <el-date-picker
          v-model="formParams.helpTime"
          type="date"
          placeholder="提交时间"
          value-format="yyyy-MM-dd">
        </el-date-picker>
      </el-form-item>


      <el-form-item prop="status">
        <el-select
          v-model="formParams.status"
          placeholder="状态"
          clearable
        >
          <el-option
            v-for="dict in pulldown.status"
            :key="dict.value"
            :label="dict.desc"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>



      <el-form-item>
        <el-button type="primary" @click="handleQuery">查询</el-button>
        <el-button type="warning" @click="handleReset">重置</el-button>
      </el-form-item>
    </el-form>

  </div>
</template>

<script>
  export default {
    name: 'HelpAssignForm',
    props:{
        pulldown:{}
    },
    mounted(){
    },
    data(){
      return {
        formParams:{

        },

      }
    },
    methods: {
      handleQuery() {
        this.$emit('query', this.formParams)
      },
      handleReset() {
        this.$refs['form'].resetFields()
        this.handleQuery()
      },

    }

  }
</script>

<style lang="scss" scoped>
  .help-assign-form{

  }

</style>

